home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kcustommenueditor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.7 KB  |  68 lines

  1. /*  This file is part of the KDE libraries
  2.     Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; version 2
  7.     of the License.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public License
  15.     along with this library; see the file COPYING.LIB.  If not, write to
  16.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17.     Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef _KCUSTOMMENUEDITOR_H_
  20. #define _KCUSTOMMENUEDITOR_H_
  21.  
  22. #include <kdialogbase.h>
  23.  
  24. class KListView;
  25. class KConfigBase;
  26.  
  27.  /*
  28.   * Dialog for editing custom menus.
  29.   *
  30.   * @author Waldo Bastian (bastian@kde.org)
  31.   * @since 3.1
  32.   */
  33. class KIO_EXPORT KCustomMenuEditor : public KDialogBase
  34. {
  35.     Q_OBJECT
  36. public:
  37.     /**
  38.      * Create a dialog for editing a custom menu
  39.      */
  40.     KCustomMenuEditor(QWidget *parent);
  41.     ~KCustomMenuEditor();
  42.     /**
  43.      * load the custom menu
  44.      */
  45.     void load(KConfigBase *);
  46.  
  47.     /**
  48.      * save the custom menu
  49.      */
  50.     void save(KConfigBase *);
  51.  
  52. public slots:
  53.     void slotNewItem();
  54.     void slotRemoveItem();
  55.     void slotMoveUp();
  56.     void slotMoveDown();
  57.     void refreshButton();
  58.  
  59. protected:
  60.     class Item;
  61.     KListView *m_listView;
  62.  
  63.     class KCustomMenuEditorPrivate;
  64.     KCustomMenuEditorPrivate *d;
  65. };
  66.  
  67. #endif
  68.